package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售订单明细对象 hh_order_detail
 * 
 * @author ruoyi
 * @date 2021-06-15
 */
public class HhOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long odId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 数量 */
    @Excel(name = "数量")
    private String productNum;

    /** 单位 */
    @Excel(name = "单位")
    private String productUnit;

    /** 商品售价 */
    @Excel(name = "商品售价")
    private String detailPrice;

    /** 金额 */
    @Excel(name = "金额")
    private String detailAmount;

    /** 删除 */
    @Excel(name = "删除")
    private Long isDel;

    public void setOdId(Long odId) 
    {
        this.odId = odId;
    }

    public Long getOdId() 
    {
        return odId;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductNum(String productNum) 
    {
        this.productNum = productNum;
    }

    public String getProductNum() 
    {
        return productNum;
    }
    public void setProductUnit(String productUnit) 
    {
        this.productUnit = productUnit;
    }

    public String getProductUnit() 
    {
        return productUnit;
    }
    public void setDetailPrice(String detailPrice) 
    {
        this.detailPrice = detailPrice;
    }

    public String getDetailPrice() 
    {
        return detailPrice;
    }
    public void setDetailAmount(String detailAmount) 
    {
        this.detailAmount = detailAmount;
    }

    public String getDetailAmount() 
    {
        return detailAmount;
    }
    public void setIsDel(Long isDel) 
    {
        this.isDel = isDel;
    }

    public Long getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("odId", getOdId())
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("productNum", getProductNum())
            .append("productUnit", getProductUnit())
            .append("detailPrice", getDetailPrice())
            .append("detailAmount", getDetailAmount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("isDel", getIsDel())
            .toString();
    }
}
